import request from "@/utils/request";
export const getAll=(name,page,pageSize)=>request.get(`/supplier/list?name=${name}&page=${page}&pageSize=${pageSize}`)
export const addApi=(data)=>request.post('/supplier/add',data)
export const queryByIdApi=(id)=>request.get(`/supplier/${id}`)
export const updateApi=(data)=>request.put('/supplier',data)
export const deleteApi=(id)=>request.delete(`/supplier?id=${id}`)
export const getCityList=()=>request.get(`/supplier/cityList`)